package com.zt.ztyh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName ztyh-credit
 */
@TableName(value ="ztyhcredit")
@Data
public class Credit implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 信用卡号
     */
    @TableField(value = "cardNumber")
    private String cardnumber;

    /**
     * 密码
     */
    @TableField(value = "payPassword")
    private String paypassword;

    /**
     * 额度
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 类型外键
     */
    @TableField(value = "typeId")
    private Integer typeid;

    /**
     * 真实姓名
     */
    @TableField(value = "realName")
    private String realname;

    /**
     * 1：男 0：女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 身份证号
     */
    @TableField(value = "idCard")
    private String idcard;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    /**
     * 1：使用 2:销毁 3：挂失
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 冗余
     */
    @TableField(value = "redundancy1")
    private String redundancy1;
    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}